ci: add basic CI pipeline for tests and linting#233
ci: add basic CI pipeline for tests and linting#233pradeeban merged 3 commits intoControlCore-Project:devfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to provide basic continuous integration for the repo (linting, pytest invocation, and a Dockerfile build check) on pushes and pull requests to the main branches.
Changes:
- Introduces
.github/workflows/ci.ymlto run Ruff checks for a small set of syntax/critical errors. - Runs
pytestwith several directories ignored. - Validates
Dockerfile.pyby attempting adocker build.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Use minimal requirements-ci.txt (no tensorflow/heavy deps) - Handle pytest exit code 5 (no tests) vs real failures - Move Dockerfile build to separate job with path filter - Add pyzmq to CI deps (required by concore.py)
|
@GaneshPatil7517 I see you are creating PRs against the main branch. Please create those against the dev branch. In this case, I was able to switch the branch to dev. Developing against the dev branch will ensure there is no repeated effort on an already fixed issue. |
- Add set +e before pytest to prevent bash -e from exiting on code 5 - Add dev branch to push/pull_request triggers per maintainer request
|
Hi @pradeeban, thanks for the heads up! I've updated the PR base branch to |
|
Merged. Thanks. |
Summary
This PR introduces a minimal GitHub Actions CI pipeline for concore. It adds automated linting and test execution on every push and pull request.
What's included
Configuration notes
The following directories are excluded from linting/testing due to config-dependent experimental scripts:
measurements/- benchmark scripts requiring external port configuration0mq/- ZeroMQ examples with external variable definitionsratc/- experimental code with known issueslinktest/- symlink files, not Python codeDockerfile.*- Docker files with .py extensionWhy this matters
Verification
ruff check .)Fixes #232